package com.atguigu.gmall.product.mapper;

import com.atguigu.gmall.model.product.BaseCategoryTrademark;
import com.atguigu.gmall.model.product.BaseTrademark;
import com.atguigu.gmall.model.product.CategoryTrademarkVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BaseCategoryTrademarkMapper extends BaseMapper<BaseCategoryTrademark> {
    List<BaseTrademark> findTrademarkList(@Param("category3Id") Long category3Id);

    List<Long> selectId(@Param("category3Id") Long category3Id);

    List<BaseTrademark> findCurrentTrademarkList(@Param("ids") List<Long> ids);

    void saveBaseTrademark(CategoryTrademarkVo categoryTrademarkVo);

    void removeBaseTrademark(@Param("category3Id") Long category3Id,@Param("trademarkId") Long trademarkId);
}
